# 定义元组, 进行基本的操作(元组的基本运算, 元素的输出, 内置函数的使用);
tup1 = ('dream', 'george', 'sapnap', 123)
tup2 = ('666', '567', 'sapnap', 123)
tup3 = tup1 + tup2
print(tup3)
print(len(tup3))
print(max(tup3))
print(min(tup3))
print(tup2*3)
print('dream' in tup1)
print("tup2[0:3]: ", tup2[0:3])
print(tup2.index('sapnap'))

# 定义一个元组, 来保存成绩, 输出最高分;
tup = (99, 98, 97, 85, 100, 150, 149, 135)
print(max(tup))
